Optimal Similar Substructure - Gt- Computability, Complexity, Theory: Algorithms